<?php

/**
 * Gère la configuration du arduino 
 */

namespace Acme\DomotiqueBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
 * @ORM\Entity
 * @ORM\Table(name="logs")
 */
class Logs
{
    /**
     * @ORM\Id 
     * @ORM\Column(type="integer") 
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;
    /**
     * @ORM\Column(type="string")
     */
    protected $log_name;
	/**
     * @ORM\Column(type="string") 
     */
	protected $log_value;
	/** 
     * @ORM\Column(type="datetime") 
     */
	protected $date;

    public function __construct()
    {
        $this->date = new \DateTime();
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set log_name
     *
     * @param string $logName
     * @return Logs
     */
    public function setLogName($logName)
    {
        $this->log_name = $logName;
    
        return $this;
    }

    /**
     * Get log_name
     *
     * @return string 
     */
    public function getLogName()
    {
        return $this->log_name;
    }

    /**
     * Set log_value
     *
     * @param string $logValue
     * @return Logs
     */
    public function setLogValue($logValue)
    {
        $this->log_value = $logValue;
    
        return $this;
    }

    /**
     * Get log_value
     *
     * @return string 
     */
    public function getLogValue()
    {
        return $this->log_value;
    }

    /**
     * Set date
     *
     * @param \DateTime $date
     * @return Logs
     */
    public function setDate($date)
    {
        $this->date = $date;
    
        return $this;
    }

    /**
     * Get date
     *
     * @return \DateTime 
     */
    public function getDate()
    {
        return $this->date;
    }
}